﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/AdminMasterPage.Master" CodeBehind="ListProduct.aspx.vb" Inherits="LinhKienMayTinh.ListProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPage" runat="server">
<div class="listproduct">
    <div class="title">
        Danh sách sản phẩm
    </div>
    <table cellpadding="2" cellspacing="0">
        <tr>
            <th style="border-right: 1px solid gray;">
                CODE
            </th>
            <th  style="border-right: 1px solid gray;">
                Tên sản phẩm
            </th>
            <th>
                Deleted
            </th>
        </tr>
        <% 
            Dim i As Integer = 1
            For Each row In dsSource.Tables(0).Rows
        %>
        <tr>
            <td class="column-1">
                <%=row("CODE")%>
            </td>
            <td class="column-2">
                <a href="productedit.aspx?productcode=<%=row("CODE")%>"><%=row("NAME")%></a>
            </td>
            <td class="column-3">
                <%=IIf(CInt(row("DEL_FLG")) = 0, "", "Đã delete")%>
            </td>
        </tr>
        <%
            If i = 1 Then
                i = 2
            Else
                i = 1
            End If
        Next
        %>
    </table>
</div>
</asp:Content>
